Skip to content

#154 - 쪽지 읽음 처리를 진행합니다. #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 6, 2025

Conversation

kpeel5839
Copy link
Contributor

1. 🔗 관련 이슈

closes #154

2. 📄 구현한 내용 또는 수정한 내용

  • 쪽지 읽음 처리 API를 구현했습니다.

5. ✅ 배포 Checklist

  • 본인을 Assign 해주세요.
  • 본인을 제외한 백엔드 개발자를 리뷰어로 지정해주세요.
  • 변경된 DB 업데이트 해주세요. (꼭 해주세요 배포 안돼요!!!)

@kpeel5839 kpeel5839 requested a review from Copilot May 6, 2025 05:59
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements an API endpoint to mark messages as read, along with the necessary domain, service, and controller layer changes.

  • Introduces mutable properties isReceiverRead and readAt on MessageV2 and a new read(viewer: User) method.
  • Adds the isRead field to the message detail and response DTOs with corresponding mappings.
  • Implements a new ReadMessageV2Service and ReadMessageV2Controller to expose the read API endpoint.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
domain/src/main/kotlin/com/wespot/message/v2/MessageV2.kt Updated message model to allow mutability and added read(viewer: User) method
domain/src/main/kotlin/com/wespot/message/v2/MessageDetail.kt Added isRead field and mapped it via message.isRead(viewer: viewer)
core/src/main/kotlin/com/wespot/message/service/v2/ReadMessageV2Service.kt Created service for handling the message-read operation
core/src/main/kotlin/com/wespot/message/port/in/ReadMessageV2UseCase.kt Defined a new use case interface for reading messages
core/src/main/kotlin/com/wespot/message/dto/response/MessageV2DetailsResponse.kt Updated response DTO to include the read status
app/src/main/kotlin/com/wespot/message/v2/ReadMessageV2Controller.kt Added a controller exposing the new read endpoint
Comments suppressed due to low confidence (2)

domain/src/main/kotlin/com/wespot/message/v2/MessageDetail.kt:25

  • The call 'message.isRead(viewer = viewer)' is not defined in MessageV2. Consider either implementing a computed property or method in MessageV2 that returns the read status based on 'isReceiverRead', or update this call to use the existing property directly.
isRead = message.isRead(viewer = viewer)

core/src/main/kotlin/com/wespot/message/dto/response/MessageV2DetailsResponse.kt:32

  • The property 'message.isRead' is used to determine the read status, but MessageV2 only contains 'isReceiverRead'. Consider unifying the API by either adding a computed 'isRead' property/method in MessageV2 or by replacing this reference with 'isReceiverRead'.
isRead = message.isRead

@kpeel5839 kpeel5839 merged commit 1cf3eb9 into develop May 6, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature]: 쪽지 읽음 처리를 합니다.
1 participant